package com.example.com.test.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者： ch
 * 时间： 2018/9/6 0006-上午 9:38
 * 描述：
 * 来源：
 */

public class AudioModel implements Parcelable {
    /**
     * id : 5
     * uid : 100649
     * title : 123
     * url : http://image.38.hn/public/attachment/201808/20/15/5b7a727b88311.mp3
     * cover : http://image.38.hn/public/attachment/201808/20/09/5b7a1b4fc4ce7.jpg
     * content : 12
     * sort : 123
     * click : 1
     * share : 2
     * comment : 2
     * collect : 1
     * create_time : 0
     * status : 1
     */

    private String id;
    private String uid;
    private String cid;
    private String title;
    private String url;
    private String cover;
    private String content;
    private String sort;
    private String click;
    private String share;
    private String comment;
    private String duration;
    private String collect;
    private String create_time;
    private String status;
    private String actitle;
    private String des;
    private String acover;

    private boolean isSelect;
    private boolean isRead;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getAcover() {
        return acover;
    }

    public void setAcover(String acover) {
        this.acover = acover;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getClick() {
        return click;
    }

    public void setClick(String click) {
        this.click = click;
    }

    public String getShare() {
        return share;
    }

    public void setShare(String share) {
        this.share = share;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getCollect() {
        return collect;
    }

    public void setCollect(String collect) {
        this.collect = collect;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getActitle() {
        return actitle;
    }

    public void setActitle(String actitle) {
        this.actitle = actitle;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public static Creator<AudioModel> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.uid);
        dest.writeString(this.cid);
        dest.writeString(this.title);
        dest.writeString(this.url);
        dest.writeString(this.cover);
        dest.writeString(this.content);
        dest.writeString(this.sort);
        dest.writeString(this.click);
        dest.writeString(this.share);
        dest.writeString(this.comment);
        dest.writeString(this.duration);
        dest.writeString(this.collect);
        dest.writeString(this.create_time);
        dest.writeString(this.status);
        dest.writeString(this.actitle);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
        dest.writeByte(this.isRead ? (byte) 1 : (byte) 0);
    }

    public AudioModel() {
    }

    protected AudioModel(Parcel in) {
        this.id = in.readString();
        this.uid = in.readString();
        this.cid = in.readString();
        this.title = in.readString();
        this.url = in.readString();
        this.cover = in.readString();
        this.content = in.readString();
        this.sort = in.readString();
        this.click = in.readString();
        this.share = in.readString();
        this.comment = in.readString();
        this.duration = in.readString();
        this.collect = in.readString();
        this.create_time = in.readString();
        this.status = in.readString();
        this.actitle = in.readString();
        this.isSelect = in.readByte() != 0;
        this.isRead = in.readByte() != 0;
    }

    public static final Creator<AudioModel> CREATOR = new Creator<AudioModel>() {
        @Override
        public AudioModel createFromParcel(Parcel source) {
            return new AudioModel(source);
        }

        @Override
        public AudioModel[] newArray(int size) {
            return new AudioModel[size];
        }
    };
}
